Elementor\Modules\Variables\Classes\Rest_Api A

Total Complexity 54
Dependencies 12
Dependents 1
Total lines 476
Lines of code 385
Logical lines of code 113
Comment lines 5
Methods 28
Properties 1

Methods 28

Method Rating Maintainability Complexity Lines of code
is_valid_operations_array()
S
50 7 30
register_routes()
S
36 1 112
error_response()
S
52 4 28
restore_existing_variable()
S
57 3 18
is_valid_variable_id()
S
59 3 16
is_valid_variable_label()
S
59 3 16
is_valid_variable_value()
S
59 3 16
is_valid_watermark()
S
65 3 9
batch_error_response()
S
62 2 11
create_variable()
S
69 2 7
create_new_variable()
S
59 1 15
update_variable()
S
69 2 7
delete_variable()
S
69 2 7
restore_variable()
S
69 2 7
get_variables()
S
70 2 7
process_batch()
S
69 2 7
update_existing_variable()
S
60 1 14
__construct()
S
81 1 3
enough_permissions_to_perform_ro_action()
S
80 1 3
enough_permissions_to_perform_rw_action()
S
80 1 3
trim_and_sanitize_text_field()
S
80 1 3
is_valid_variable_type()
S
74 1 4
clear_cache()
S
82 1 3
delete_existing_variable()
S
65 1 9
list_of_variables()
S
67 1 8
success_response()
S
70 1 6
prepare_error_response()
S
66 1 9
process_batch_operations()
S
68 1 7